/*
 * NetworkProxy.cpp
 *
 *  Created on: Jun 4, 2010
 *      Author: sdaniele
 */

#include "NetworkProxy.h"
#include "NetworkNetwork.h"

namespace noti {

NetworkProxy::NetworkProxy(NetworkNetwork* nns)
	:m_nns(nns)
{}

NetworkProxy& NetworkProxy::clock(const sc_clock* clk){
	for(size_t i=0; i<m_nns->num_event_network(); i++)
		m_nns->at(i)->clock(clk);
	return *this;
}

NetworkProxy& NetworkProxy::immediate(size_t n){
	for(size_t i=0; i<m_nns->num_event_network(); i++)
		m_nns->at(i)->immediate(n);
	return *this;
}
NetworkProxy& NetworkProxy::delta(size_t n){
	for(size_t i=0; i<m_nns->num_event_network(); i++)
		m_nns->at(i)->delta(n);
	return *this;
}
NetworkProxy& NetworkProxy::timed(size_t n, const sc_time& t){
	for(size_t i=0; i<m_nns->num_event_network(); i++)
		m_nns->at(i)->timed(n,t);
	return *this;
}
NetworkProxy& NetworkProxy::cancel(size_t n){
	for(size_t i=0; i<m_nns->num_event_network(); i++)
		m_nns->at(i)->cancel(n);
	return *this;
}

NetworkProxy& NetworkProxy::sensitive(size_t n){
	for(size_t i=0; i<m_nns->num_event_network(); i++)
		m_nns->at(i)->sensitive(n);
	return *this;
}

NetworkNetwork& NetworkProxy::up(){
	return *m_nns;
}


NetworkProxy::~NetworkProxy() {}

}
